package cn.itsource.controller;

import cn.itsource.service.IPetTypeService;
import cn.itsource.util.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author : 张金铭
 * @description :
 * @create :2022-11-20 15:16:00
 */
@Slf4j
@RestController
@RequestMapping("/petType")
public class PetTypController {

    @Resource
    private IPetTypeService petTypeService;

    @GetMapping("/getTree")
    public JsonResult getTree(){
        return petTypeService.getTree();
    }
}
